//
//  OrderGoodsesCell.m
//  Wujin
//
//  Created by cz on 2016/12/11.
//  Copyright © 2016年 dong. All rights reserved.
//

#import "OrderGoodsesCell.h"
#import "OrderModel.h"
@interface OrderGoodsesCell ()

@property (weak, nonatomic) IBOutlet UIImageView *goodsImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *totalPriceLabel;


@end

@implementation OrderGoodsesCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setOrderGoodses:(OrderGoodses *)orderGoodses {
    
    _orderGoodses = orderGoodses;
    [self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:orderGoodses.url] placeholderImage:[UIImage imageNamed:@"goods_placeholder"]];
    self.nameLabel.text = orderGoodses.name;
    self.typeLabel.text = orderGoodses.type;
    self.countLabel.text = orderGoodses.count;
    self.priceLabel.text = orderGoodses.price;
    self.totalPriceLabel.text = orderGoodses.totalPrice;
}


@end
